The Practice of Theories: Adding “For-all” Statements to “There-Exists” Tests

نویسندگان

  • David Saff
  • Marat Boshernitsan
چکیده

Traditional unit tests in test-driven development compare a few concrete example executions against the developer’s definition of correct behavior. However, a developer knows more about how a program should behave than can be expressed through concrete examples. These general insights can be captured as theories, which precisely express software properties over potentially infinite sets of values. Combining tests with theories allows developers to say what they mean, and guarantee that their code is intuitively correct, with less effort. The consistent format of theories enables automatic tools to generate or discover values that violate these properties, discovering bugs that developers didn’t think to test for. December 5, 2006 DRAFT

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Convection Heat Transfer Modeling of Nano- fluid Tio2 Using Different Viscosity Theories

In this paper, the effects of adding nanoparticles including Tio2 to a fluid media for purpose of free convection heat transfer improvement were analyzed. The free convection was assumed to be in laminar flow regime and the solutions and calculations were all done by the integral method. Water, as a Newtonian fluid, was considered the base fluid (water) and all the thermo physical properties of...

متن کامل

Adding quality to teacher training by benefiting from strategies and prescriptive principles of effective teaching

Introduction: During the last six decades, various educational theories and models have been presented in the educational literature. Therefore, the aim of the current research was to provide appropriate strategies and principles in order to improve the effectiveness and quality of teachers' teaching Methods: Using qualitative content analysis method of inductive formation of classification, th...

متن کامل

P98: Effect of Attentional Focus of Self-Statements in Basketball Practice on State Anxiety of Novice Players before Free Throw in front of Audience

The purpose of present study was investigation of the effect of attentional focus of novice players’ self-statements in basketball free throw practice on their state anxiety in transfer test with spectators’ presence. Therefore, 38 novice females (mean of the age=22 yrs.) who had intermediate trait anxiety were selected randomly by sports competitive anxiety test (SCAT). The participants were a...

متن کامل

Prevalence of Serologic Markers of Hepatitis B and C and Risk Factors among Dentists and Physicians in Kerman, Iran

In this cross sectional anonymous study, blood samples of 285 dentists and Physicians were tested for hepatitis B surface antigen (HBs Ag), hepatitis B envelope Ag (HBe Ag), antibodies to: hepatitis B suface (anti-HBs), hepatitis B core Ag (anti-HBc) and hepatitis B envelope Ag (anti-HBe) by ELISA-3 and antibody to hepatitis C virus (anti-HCV) by ELISA-3 and immunoblotting tests. The results su...

متن کامل

Coherence of Laws

The core of scientific theories are laws. These laws often make use of theoretical terms, linguistic entities which do not directly refer to observables. There is therefore no direct way of determining which theoretical assertions are true. This suggests that multiple theories may exist which are incompatible with each other but compatible with all possible observations. Since such theories mak...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2006